package com.fjp.heartguard.app.data.bean

import java.io.Serializable

enum class QuestionType {
    SINGLE, MULTIPLE, PROGRESSBAR, INPUT,SINGINPUT
}

enum class GroupQuestionType(val value:Int) {
    COGNITION_A(0),  //认知A
    COGNITION_B(1), //认知B
    LOCOMOTIVITY(2),//移动能力
    NUTRITIONAL_STATUS(3),//营养状况
    SENSORY_ABILITY(4),//感官与沟通能力评估
    DEPRESSED(5),//抑郁症状评估
    DEFECATION(6),//大小便控制能力评估
    DAILY_LIFE_A(7),//日常生活活动能力评估-基本日常生活
    DAILY_LIFE_B(8),//日常生活活动能力评估-工具性日常伤害
    TAKE_CARE_OF(9),//照护质量评估
    CARE_SERVICES(10),//照护服务使用情况
    MEDICAL_SERVICE(11),//医疗服务利用情况
    STATISTICS(12),//作答情况
}

class Questions : Serializable {
    var questionType: GroupQuestionType = GroupQuestionType.COGNITION_B
    var type: QuestionType = QuestionType.SINGLE
    var options: MutableList<Options> = mutableListOf()
    var questionTitle: String = ""
}

class Options(var title: String,//标题
    var isSelected: Boolean,//是否选中
    var value: String = ""): Serializable